﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace Luna小店.UC.销售管理
{
    public partial class Form销售门户 : DevExpress.XtraEditors.XtraForm
    {
        public Form销售门户()
        {
            InitializeComponent();
            // Handling the QueryControl event that will populate all automatically generated Documents
            this.widgetView1.QueryControl += widgetView1_QueryControl;
        }

        // Assigning a required content for each auto generated Document
        void widgetView1_QueryControl(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e)
        {
            if (e.Document == XtraUserControl导航按钮Document)
                e.Control = new Luna小店.UC.销售管理.门户UC.XtraUserControl导航按钮();
            if (e.Document == XtraUserControl客户信息查询Document)
                e.Control = new Luna小店.UC.销售管理.门户UC.XtraUserControl客户信息查询();
            if (e.Document == XtraUserControl库存Document)
                e.Control = new Luna小店.UC.销售管理.门户UC.XtraUserControl库存();
            if (e.Control == null)
                e.Control = new System.Windows.Forms.Control();
        }
    }
}